<?php
/**
 * Created by PhpStorm.
 * User: seven
 * Date: 2018/4/5
 * Time: 上午12:00
 */
ini_set("display_errors", "On");
error_reporting(E_ALL | E_STRICT);

date_default_timezone_set("Asia/Shanghai");

require __DIR__.'/../Lang3.php';
require __DIR__.'/../PDOManager3.php';
require __DIR__.'/../Resp3.php';

$id = Lang3::getParam('id', '');

$pdo = PDOManager3::getDB();

if($id != ''){
    PDOManager3::delete($pdo, 'vip', 'id=:id', [
        'id' => $id,
    ]);
    echo Resp3::response_json_ok([
        'id' => $id,
    ]);
}else{
    echo Resp3::response_json_fail(404, "无效id");
}



